from __future__ import division

a=[1,2,3,4,5,6,7,8]
b=sum(a)
avg=b/len(a)

print b
print avg